// JavaScript Document
$(".secondScreenContent:first").show();

$($(".addCart")[0]).show();
$($(".discountContentShow")[0]).css({"top":0})
$($(".zhekou")[0]).show();

$(".discountContent").live("mouseover",function(){
	var i=$(".discountContent").index($(this));
	$(".discountContentShow").css({"top":"20px"})
	$($(".discountContentShow")[i]).css({"top":0})
	$(".zhekou").hide();
	$($(".zhekou")[i]).show();
});

//660/1080=1740
var W=$(window).height();
var Ftop=(W-290)/2;
$(window).scroll(function(){
	var Stop=$(window).scrollTop();
	var floorTop=Ftop+Stop-660;
	if(Stop>=1640){
		var i=Math.floor((Stop-1640)/716);
		$(".floorRow a").removeClass("floorRowCurrent");
		$($(".floorRow a")[i]).addClass("floorRowCurrent");
		$(".floorplayer").css({"top":floorTop+"px","display":"block"})
	}
	else{
		$(".floorplayer").hide();
	}
});
$(".secondScreenTitle a").live('mouseover',function(){
	var i=$(".secondScreenTitle a").index($(this));
	$(".secondScreenTitle a").removeClass("titleAcurrent")
	$(this).addClass("titleAcurrent");
	$(".secondScreenContent").hide();
	$($(".secondScreenContent")[i]).show();
});

$(".goodsShowBottom").hide();
$(".goodsShowBottom").mouseover(function(){
	$(this).css("background-color","#ec6d78")
})
$(".goodsShow").mouseover(function(){
	var i=$(".goodsShow").index($(this));
	$(".goodsShowBottom").hide();
	$($(".goodsShowBottom")[i]).show();
})

function tohref(url){
	location.href=url;
}